package com.jic.market.service;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.market.request.manager.presell.*;
import com.jic.market.response.manager.presell.PresellGoodsPageQueryResponse;

/**
* 预售商品表
* @author : 
* @email : 
* @since : 2020-03-11 06:09:59
* @version : v1.0.0
*/
public interface PromotionPresellProductService {

    /**
     * 商品是否为空
     * @param request
     * @return
     */
    RestResult<Boolean> merchantAndStoreIsNull(PresellProductIsNullRequest request);

    RestResult<Long> skuCount(PresellProductIsNullRequest request);

    /**
     * 批量添加预售商品
     * @param request
     * @return 返回商品表中id集合
     */
    RestResult<Long> addBatch(PresellProductAddBatchRequest request);

    RestResult<Long> addBatchAll(PresellProductAddBatchAllRequest request);

    /**
     * 分页查询预售商品
     * @param request
     * @return
     */
//    RestResult<PageResult<PromotionPresellProduct>> pageQuery(PresellProductPageQueryRequest request);


    RestResult<PageResult<PresellGoodsPageQueryResponse>> pageQueryNew(PresellGoodsPageQueryRequest request);

    RestResult<PageResult<PresellGoodsPageQueryResponse>> pageQueryNewNew(PresellGoodsPageQueryRequest request);

    /**
     * 批量删除预售商品
     * @param request
     * @return 返回删除条数
     */
    RestResult<Long> delBatch(PresellProductDeleteRequest request);


    /**
     * 更新预售商品
     * @param request
     * @return 返回更新条数
     */
    RestResult<Long> update(PresellProductUpdateRequest request);
}